﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Pikapika.Models.ViewModels.Annotation
{
    public class AnnotationAddModel
    {
        [Required]
        [Range(1,int.MaxValue)]
        public int ChapterId { get; set; }

        [Required]
        [Range(0.0,100.0)]
        public double Position { get; set; }

        [Required]
        [StringLength(50, MinimumLength=1)]
        public string Content { get; set; }
    }
}